//
//  LLSegmentView.h
//  TaoTuo
//
//  Created by admin on 2019/11/4.
//  Copyright © 2019 admin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^SelectItemBlock)(NSInteger index, UIButton *selectItemButton);

NS_ASSUME_NONNULL_BEGIN

@interface LLSegmentView : UIView

- (instancetype)initWithFrame:(CGRect)frame items:(nonnull NSArray *)items selectItemBlock:(SelectItemBlock)selectItemBlock; // items can be NSStrings or UIImages.

/// 重新设置items
- (void)setItems:(nonnull NSArray *)items;

/// 设置字体大小
- (void)setFont:(UIFont *)font;

/// 设置字体颜色
- (void)setTitleColor:(UIColor *)titleColor;

/// 设置选中的字体大小
- (void)setSelectFont:(UIFont *)selectFont;

/// 设置选中的字体颜色
- (void)setSelectTitleColor:(UIColor *)selectTitleColor;

/// 设置选中的item
- (void)setSelectItems:(nullable NSArray *)selectItems;



@end

NS_ASSUME_NONNULL_END
